
package com.xbongbong.admin.domain.dao;

import com.xbongbong.admin.domain.entity.RaidersEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;


/**
* @author autoGen
* @time 2019-09-18 13:56:15
*/
@Repository
@Mapper
public interface RaidersDao {


	Integer insert(RaidersEntity raiders);
	Integer update(RaidersEntity raiders);

	void insertBatch(@Param("list") List<RaidersEntity> raidersList);

	Integer deleteByKey(@Param("key") Long key);
	RaidersEntity getByKey(@Param("key") Long key);


	List<RaidersEntity>  findEntitys(@Param("param") Map<String, Object> param);
	Integer getEntitysCount(@Param("param") Map<String, Object> param);

	/**
	 * 获取某分组下的所有攻略数
	 * @param groupId
	 * @return java.lang.Integer
	 * @author zcp
	 * @date 19/10/16 016 9:37
	 * @update 19/10/16 016 9:37
	 * @since v1.0
	 * @version v1.0
	 */
	Integer  getCountByGroupId(@Param("groupId") Long groupId);

	/**
	 * 排序--批量操作
	 * @param list
	 * @return java.lang.Integer
	 * @author zcp
	 * @date 19/9/20 020 16:23
	 * @update 19/9/20 020 16:23
	 * @since v1.0
	 * @version v1.0
	 */
	Integer updateSort(@Param("list") List<RaidersEntity> list);
	/**
	 * 批量更新
	 * @param list
	 * @author xingxing.xiao
	 * @date 2019/12/27 10:12
	 */
	Integer updateSetBatch(@Param("list") List<RaidersEntity> list);

	/**
	 * 获取攻略id列表
	 * @param param
	 * @return java.util.List<java.lang.Long>
	 * @author zcp
	 * @date 19/10/16 016 9:56
	 * @update 19/10/16 016 9:56
	 * @since v1.0
	 * @version v1.0
	 */
	List<Long> getIdList(@Param("param") Map<String, Object> param);
}